import app from "@/main.js"

export const getClientInfo = () => {
  var pinf = plus.push.getClientInfo();
  var cid = pinf.clientid; //客户端标识
  let platform=plus.os.name;
  app._post(
    "plus.push.set/set", {
      cid: cid,
      platform: platform
    },
    result => {
     console.log(result)
    },
    false,
    () => {

    });
    // 论坛提交cid
  const jvObj = {
    type: 'setalias',
   };
  let params = {
    _jv: jvObj,
    cid: cid,
    platform:platform
  };
  console.log('params',params)
  app.$store
    .dispatch('jv/post', params)
    .then(data => {
      console.log('setalias成功')
    });
}
export const setCid = () => {
  var pinf = plus.push.getClientInfo();
  var cid = pinf.clientid; //客户端标识
  let platform=plus.os.name;

}
